﻿using Authentication.Model.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Provider
{
    public class ProviderFactory :IProviderFactory
    {
        private IApplicationProvider applications = null;
        public IApplicationProvider Applications
        {
            get 
            {
                if (applications == null) applications = new ApplicationProvider();
                return applications;
            }
        }

        private IUserProvider users = null;
        public IUserProvider Users
        {
            get
            {
                if (users == null) users = new UserProvider();
                return users;
            }
        }
    }
}
